﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:storage="clr-namespace:PracaInz_v0"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" mc:Ignorable="d"	
    x:Class="PracaInz_v0.MainWindow"
	x:Name="Window"
	Title="Decision Trees in WPF"
	Width="1300" Height="720" WindowStartupLocation="CenterScreen" Background="White" Foreground="White" SizeChanged="Window_SizeChanged" MinHeight="250" MinWidth="450" Icon="Icon/TreeIco.ico" Loaded="Window_Loaded">
	<Window.Resources>
        <ResourceDictionary Source="Styles\Styles.xaml"/>
    </Window.Resources>
	<Window.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="rectangle1">
			<BeginStoryboard x:Name="Icon1OnMouseEnter_BeginStoryboard" Storyboard="{StaticResource Icon1OnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="rectangle1">
			<BeginStoryboard x:Name="Icon1OnMouseLeave_BeginStoryboard" Storyboard="{StaticResource Icon1OnMouseLeave}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="rectangle2">
			<BeginStoryboard x:Name="Icon2OnMouseEnter_BeginStoryboard" Storyboard="{StaticResource Icon2OnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="rectangle2">
			<BeginStoryboard x:Name="Icon2OnMouseLeave_BeginStoryboard" Storyboard="{StaticResource Icon2OnMouseLeave}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonDown" SourceName="rectangle1">
			<BeginStoryboard x:Name="Icon1OnMouseLeftButtonDown_BeginStoryboard" Storyboard="{StaticResource Icon1OnMouseLeftButtonDown}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonUp" SourceName="rectangle1">
			<BeginStoryboard x:Name="Icon1OnMouseEnter_BeginStoryboard1" Storyboard="{StaticResource Icon1OnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonDown" SourceName="rectangle2">
			<BeginStoryboard x:Name="Icon2OnMouseLeftButtonDown_BeginStoryboard" Storyboard="{StaticResource Icon2OnMouseLeftButtonDown}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonUp" SourceName="rectangle2">
			<BeginStoryboard x:Name="Icon2OnMouseEnter_BeginStoryboard1" Storyboard="{StaticResource Icon2OnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="rectangle3">
			<BeginStoryboard x:Name="Icon3OnMouseEnter_BeginStoryboard" Storyboard="{StaticResource Icon3OnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="rectangle3">
			<BeginStoryboard x:Name="Icon3OnMouseLeave_BeginStoryboard" Storyboard="{StaticResource Icon3OnMouseLeave}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonDown" SourceName="rectangle3">
			<BeginStoryboard x:Name="Icon3OnMouseLeftButtonDown_BeginStoryboard" Storyboard="{StaticResource Icon3OnMouseLeftButtonDown}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonUp" SourceName="rectangle3">
			<BeginStoryboard x:Name="Icon3OnMouseEnter_BeginStoryboard1" Storyboard="{StaticResource Icon3OnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="rectangleRefresh">
			<BeginStoryboard x:Name="IconRefreshOnMouseEnter_BeginStoryboard" Storyboard="{StaticResource IconRefreshOnMouseEnter}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="rectangleRefresh">
			<BeginStoryboard x:Name="IconRefreshOnMouseLeave_BeginStoryboard" Storyboard="{StaticResource IconRefreshOnMouseLeave}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonDown" SourceName="rectangleRefresh">
			<BeginStoryboard x:Name="IconRefreshMouseLeftButtonDown_BeginStoryboard" Storyboard="{StaticResource IconRefreshMouseLeftButtonDown}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="UIElement.MouseLeftButtonUp" SourceName="rectangleRefresh">
			<BeginStoryboard x:Name="IconRefreshMouseLeftButtonUp_BeginStoryboard" Storyboard="{StaticResource IconRefreshMouseLeftButtonUp}"/>
		</EventTrigger>
	</Window.Triggers>

	<Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <storage:BooleanVisibilityValueConverter x:Key="BoolToVisible" />
        </Grid.Resources>
        <Grid.RowDefinitions>
			<RowDefinition Height="60"/>
			<RowDefinition/>
			<RowDefinition Height="20"/>
		</Grid.RowDefinitions>
		<Rectangle Grid.Row="0">
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF93A1CE" Offset="0"/>
					<GradientStop Color="#FFE4E4E4" Offset="1"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<Rectangle Grid.Row="2">
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFE4E4E4" Offset="0"/>
					<GradientStop Color="#FF93A1CE" Offset="1"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
	
		<Path x:Name="path1" Width="52" Height="52" Canvas.Left="113.005" Canvas.Top="47.0674" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Data="F1 M 119.005,48.0674L 159.005,48.0674C 161.767,48.0674 164.005,50.306 164.005,53.0674L 164.005,93.0674C 164.005,95.8288 161.767,98.0674 159.005,98.0674L 119.005,98.0674C 116.244,98.0674 114.005,95.8288 114.005,93.0674L 114.005,53.0674C 114.005,50.306 116.244,48.0674 119.005,48.0674 Z " Grid.Row="0" HorizontalAlignment="Left" Margin="20,4,0,4" d:LayoutOverrides="Width" Stroke="#00CCBEBE">
			<Path.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Path.Fill>
		</Path>
		
		<Path x:Name="path2" Width="52" Height="52" Canvas.Left="113.005" Canvas.Top="47.0674" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Data="F1 M 119.005,48.0674L 159.005,48.0674C 161.767,48.0674 164.005,50.306 164.005,53.0674L 164.005,93.0674C 164.005,95.8288 161.767,98.0674 159.005,98.0674L 119.005,98.0674C 116.244,98.0674 114.005,95.8288 114.005,93.0674L 114.005,53.0674C 114.005,50.306 116.244,48.0674 119.005,48.0674 Z " Grid.Row="0" HorizontalAlignment="Left" Margin="72,4,0,4" d:LayoutOverrides="Width" Stroke="#00CCBEBE">
			<Path.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Path.Fill>
		</Path>
		
		<Path x:Name="path3" Width="52" Height="52" Canvas.Left="113.005" Canvas.Top="47.0674" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Data="F1 M 119.005,48.0674L 159.005,48.0674C 161.767,48.0674 164.005,50.306 164.005,53.0674L 164.005,93.0674C 164.005,95.8288 161.767,98.0674 159.005,98.0674L 119.005,98.0674C 116.244,98.0674 114.005,95.8288 114.005,93.0674L 114.005,53.0674C 114.005,50.306 116.244,48.0674 119.005,48.0674 Z " Grid.Row="0" HorizontalAlignment="Left" Margin="124,4,0,4" d:LayoutOverrides="Width" Stroke="#00CCBEBE">
			<Path.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Path.Fill>
		</Path>
		<Path x:Name="pathRefresh" Width="52" Height="52" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Data="F1 M 119.005,48.0674L 159.005,48.0674C 161.767,48.0674 164.005,50.306 164.005,53.0674L 164.005,93.0674C 164.005,95.8288 161.767,98.0674 159.005,98.0674L 119.005,98.0674C 116.244,98.0674 114.005,95.8288 114.005,93.0674L 114.005,53.0674C 114.005,50.306 116.244,48.0674 119.005,48.0674 Z " Grid.Row="0" HorizontalAlignment="Right" Margin="0,4,20,4" Stroke="#00CCBEBE" d:LayoutOverrides="Width">
			<Path.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Path.Fill>
		</Path>
			
		<Canvas x:Name="Icon1" Width="42.482" Height="42.1092" Grid.Row="0" HorizontalAlignment="Left" Margin="76.759,8.945,0,8.945">
			<Path Width="14.782" Height="17.8" Canvas.Left="21.109" Canvas.Top="4" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 21.3438,4.85919L 35.125,20.1925"/>
			<Path Width="10.718" Height="16.966" Canvas.Left="11.141" Canvas.Top="4" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 21.3438,5.85919L 11.625,20.1925"/>
			<Path Width="7.74999" Height="17.9167" Canvas.Left="4.00002" Canvas.Top="19.6925" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 11.25,20.1925L 4.50002,37.1092"/>
			<Path Width="11.75" Height="17.9167" Canvas.Left="12" Canvas.Top="19.6925" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 12.5,20.1925L 23.25,37.1092"/>
			<Path Width="10" Height="10" Canvas.Left="16.3438" Canvas.Top="0" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 21.3438,0C 24.1052,0 26.3438,2.23859 26.3438,5C 26.3438,7.76141 24.1052,10 21.3438,10C 18.5823,10 16.3438,7.76141 16.3438,5C 16.3438,2.23859 18.5823,0 21.3438,0 Z ">
				<Path.Fill>
					<RadialGradientBrush RadiusX="0.550002" RadiusY="0.55" Center="0.5,0.499994" GradientOrigin="0.5,0.499994">
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup/>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#FF2C19CC" Offset="0"/>
						<GradientStop Color="#FF667CB0" Offset="0.460465"/>
						<GradientStop Color="#FFA1E095" Offset="1"/>
					</RadialGradientBrush>
				</Path.Fill>
			</Path>
			<Path Width="15" Height="15" Canvas.Left="27.4818" Canvas.Top="12.6925" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 34.9818,12.6925C 39.1239,12.6925 42.4818,16.0504 42.4818,20.1925C 42.4818,24.3347 39.1239,27.6925 34.9818,27.6925C 30.8396,27.6925 27.4818,24.3347 27.4818,20.1925C 27.4818,16.0504 30.8396,12.6925 34.9818,12.6925 Z ">
				<Path.Fill>
					<RadialGradientBrush Center="0.5,0.5" GradientOrigin="0.5,0.5" RadiusY="0.533333" RadiusX="0.533334">
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup/>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#FFCE1414" Offset="0"/>
						<GradientStop Color="#FFCF6868" Offset="0.87907"/>
						<GradientStop Color="#FFD0BCBC" Offset="1"/>
					</RadialGradientBrush>
				</Path.Fill>
			</Path>
			<Path Width="10" Height="10" Canvas.Left="6.95834" Canvas.Top="15.1925" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 11.9584,15.1925C 14.7198,15.1925 16.9584,17.4311 16.9584,20.1925C 16.9584,22.954 14.7198,25.1925 11.9584,25.1925C 9.19692,25.1925 6.95834,22.954 6.95834,20.1925C 6.95834,17.4311 9.19691,15.1925 11.9584,15.1925 Z ">
				<Path.Fill>
					<RadialGradientBrush RadiusX="0.55" RadiusY="0.55" Center="0.5,0.5" GradientOrigin="0.5,0.5">
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup/>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#FF2C19CC" Offset="0"/>
						<GradientStop Color="#FF667CB0" Offset="0.460465"/>
						<GradientStop Color="#FFA1E095" Offset="1"/>
					</RadialGradientBrush>
				</Path.Fill>
			</Path>
			<Path Width="10" Height="10" Canvas.Left="18.0938" Canvas.Top="32.1092" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 23.0938,32.1092C 25.8552,32.1092 28.0938,34.3478 28.0938,37.1092C 28.0938,39.8706 25.8552,42.1092 23.0938,42.1092C 20.3323,42.1092 18.0938,39.8706 18.0938,37.1092C 18.0938,34.3478 20.3323,32.1092 23.0938,32.1092 Z ">
				<Path.Fill>
					<RadialGradientBrush RadiusX="0.55" RadiusY="0.550003" Center="0.5,0.499997" GradientOrigin="0.5,0.499997">
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup/>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#FF2C19CC" Offset="0"/>
						<GradientStop Color="#FF667CB0" Offset="0.460465"/>
						<GradientStop Color="#FFA1E095" Offset="1"/>
					</RadialGradientBrush>
				</Path.Fill>
			</Path>
			<Path Width="10" Height="10" Canvas.Left="1.52588e-005" Canvas.Top="32.1092" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 5.00002,32.1092C 7.76144,32.1092 10,34.3478 10,37.1092C 10,39.8706 7.76143,42.1092 5.00002,42.1092C 2.23859,42.1092 1.52588e-005,39.8706 1.52588e-005,37.1092C 1.52588e-005,34.3478 2.23858,32.1092 5.00002,32.1092 Z ">
				<Path.Fill>
					<RadialGradientBrush RadiusX="0.549999" RadiusY="0.55" Center="0.5,0.5" GradientOrigin="0.5,0.5">
						<RadialGradientBrush.RelativeTransform>
							<TransformGroup/>
						</RadialGradientBrush.RelativeTransform>
						<GradientStop Color="#FF2C19CC" Offset="0"/>
						<GradientStop Color="#FF667CB0" Offset="0.460465"/>
						<GradientStop Color="#FFA1E095" Offset="1"/>
					</RadialGradientBrush>
				</Path.Fill>
			</Path>
		</Canvas>
        <Canvas x:Name="Icon2" Width="44.615" Height="44.7861" Grid.Row="0" HorizontalAlignment="Left" Margin="24,7.5,0,7.213">
            <Path Width="5.768" Height="9.227" Canvas.Left="21.643" Canvas.Top="6.955" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.1613,2.53751L 32.3938,10.7653"/>
            <Path Width="5.455" Height="8.612" Canvas.Left="27.103" Canvas.Top="7.57" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.8534,3.15265L 42.3078,10.7653"/>
            <Path Width="4.614" Height="4.614" Canvas.Left="24.681" Canvas.Top="4.917" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 37.2382,0C 38.5123,0 39.5451,1.03278 39.5451,2.30682C 39.5451,3.58087 38.5123,4.61371 37.2382,4.61371C 35.9642,4.61371 34.9314,3.58087 34.9314,2.30682C 34.9314,1.03278 35.9642,0 37.2382,0 Z ">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.550002" RadiusY="0.549999" Center="0.5,0.499993" GradientOrigin="0.5,0.499993">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="4.613" Height="4.613" Canvas.Left="19.837" Canvas.Top="13.376" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 32.3938,8.45853C 33.6679,8.45853 34.7007,9.49133 34.7007,10.7654C 34.7007,12.0394 33.6679,13.0723 32.3938,13.0723C 31.1198,13.0723 30.0869,12.0394 30.0869,10.7654C 30.0869,9.49133 31.1198,8.45853 32.3938,8.45853 Z ">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.550002" RadiusY="0.550002" Center="0.5,0.499997" GradientOrigin="0.5,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="4.613" Height="4.613" Canvas.Left="29.751" Canvas.Top="13.376" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 42.3078,8.45853C 43.5819,8.45853 44.6147,9.49133 44.6147,10.7654C 44.6147,12.0394 43.5819,13.0723 42.3078,13.0723C 41.0338,13.0723 40.001,12.0394 40.001,10.7654C 40.001,9.49133 41.0338,8.45853 42.3078,8.45853 Z ">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.549999" RadiusY="0.550002" Center="0.500003,0.499997" GradientOrigin="0.500003,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="5.768" Height="9.227" Canvas.Left="26.726" Canvas.Top="15.288" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.1613,2.53751L 32.3938,10.7653" Panel.ZIndex="-1"/>
            <Path Width="5.455" Height="8.612" Canvas.Left="32.186" Canvas.Top="15.903" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.8534,3.15265L 42.3078,10.7653" Panel.ZIndex="-1"/>
            <Path Width="4.613" Height="4.613" Canvas.Left="24.92" Canvas.Top="21.709" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 32.3938,8.45853C 33.6679,8.45853 34.7007,9.49133 34.7007,10.7654C 34.7007,12.0394 33.6679,13.0723 32.3938,13.0723C 31.1198,13.0723 30.0869,12.0394 30.0869,10.7654C 30.0869,9.49133 31.1198,8.45853 32.3938,8.45853 Z " Panel.ZIndex="-1">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.550002" RadiusY="0.550002" Center="0.5,0.499997" GradientOrigin="0.5,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="4.613" Height="4.613" Canvas.Left="34.834" Canvas.Top="21.709" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 42.3078,8.45853C 43.5819,8.45853 44.6147,9.49133 44.6147,10.7654C 44.6147,12.0394 43.5819,13.0723 42.3078,13.0723C 41.0338,13.0723 40.001,12.0394 40.001,10.7654C 40.001,9.49133 41.0338,8.45853 42.3078,8.45853 Z " Panel.ZIndex="-1">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.549999" RadiusY="0.550002" Center="0.500003,0.499997" GradientOrigin="0.500003,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="5.768" Height="9.227" Canvas.Left="3.393" Canvas.Top="23.919" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.1613,2.53751L 32.3938,10.7653"/>
            <Path Width="5.455" Height="8.612" Canvas.Left="8.853" Canvas.Top="24.534" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.8534,3.15265L 42.3078,10.7653"/>
            <Path Width="4.614" Height="4.614" Canvas.Left="6.431" Canvas.Top="21.881" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 37.2382,0C 38.5123,0 39.5451,1.03278 39.5451,2.30682C 39.5451,3.58087 38.5123,4.61371 37.2382,4.61371C 35.9642,4.61371 34.9314,3.58087 34.9314,2.30682C 34.9314,1.03278 35.9642,0 37.2382,0 Z ">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.550002" RadiusY="0.549999" Center="0.5,0.499993" GradientOrigin="0.5,0.499993">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="4.613" Height="4.613" Canvas.Left="1.587" Canvas.Top="30.34" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 32.3938,8.45853C 33.6679,8.45853 34.7007,9.49133 34.7007,10.7654C 34.7007,12.0394 33.6679,13.0723 32.3938,13.0723C 31.1198,13.0723 30.0869,12.0394 30.0869,10.7654C 30.0869,9.49133 31.1198,8.45853 32.3938,8.45853 Z ">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.550002" RadiusY="0.550002" Center="0.5,0.499997" GradientOrigin="0.5,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="4.613" Height="4.613" Canvas.Left="11.501" Canvas.Top="30.34" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 42.3078,8.45853C 43.5819,8.45853 44.6147,9.49133 44.6147,10.7654C 44.6147,12.0394 43.5819,13.0723 42.3078,13.0723C 41.0338,13.0723 40.001,12.0394 40.001,10.7654C 40.001,9.49133 41.0338,8.45853 42.3078,8.45853 Z ">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.549999" RadiusY="0.550002" Center="0.500003,0.499997" GradientOrigin="0.500003,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="5.768" Height="9.227" Canvas.Left="8.476" Canvas.Top="32.252" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.1613,2.53751L 32.3938,10.7653" Panel.ZIndex="-1"/>
            <Path Width="5.455" Height="8.612" Canvas.Left="13.936" Canvas.Top="32.867" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF3F995B" Data="F1 M 37.8534,3.15265L 42.3078,10.7653" Panel.ZIndex="-1"/>
            <Path Width="4.613" Height="4.613" Canvas.Left="6.67" Canvas.Top="38.673" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 32.3938,8.45853C 33.6679,8.45853 34.7007,9.49133 34.7007,10.7654C 34.7007,12.0394 33.6679,13.0723 32.3938,13.0723C 31.1198,13.0723 30.0869,12.0394 30.0869,10.7654C 30.0869,9.49133 31.1198,8.45853 32.3938,8.45853 Z " Panel.ZIndex="-1">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.550002" RadiusY="0.550002" Center="0.5,0.499997" GradientOrigin="0.5,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Path Width="4.613" Height="4.613" Canvas.Left="16.584" Canvas.Top="38.673" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Data="F1 M 42.3078,8.45853C 43.5819,8.45853 44.6147,9.49133 44.6147,10.7654C 44.6147,12.0394 43.5819,13.0723 42.3078,13.0723C 41.0338,13.0723 40.001,12.0394 40.001,10.7654C 40.001,9.49133 41.0338,8.45853 42.3078,8.45853 Z " Panel.ZIndex="-1">
                <Path.Fill>
                    <RadialGradientBrush RadiusX="0.549999" RadiusY="0.550002" Center="0.500003,0.499997" GradientOrigin="0.500003,0.499997">
                        <RadialGradientBrush.RelativeTransform>
                            <TransformGroup/>
                        </RadialGradientBrush.RelativeTransform>
                        <GradientStop Color="#FF2C19CC" Offset="0"/>
                        <GradientStop Color="#FF667CB0" Offset="0.460465"/>
                        <GradientStop Color="#FFA1E095" Offset="1"/>
                    </RadialGradientBrush>
                </Path.Fill>
            </Path>
            <Rectangle Height="27.785" Canvas.Left="17.058" Stroke="#FFBC1E1E" StrokeLineJoin="Round" Canvas.Top="2.582" Width="25.859" RadiusY="8.667" RadiusX="8.667" StrokeThickness="2"/>
        </Canvas>                
		<Canvas x:Name="Icon3" Height="46" Width="46" Margin="127,6.5,0,0" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left">
			<TextBlock TextAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left"><TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleY="1.11" ScaleX="1.23"/>
						<SkewTransform/>
						<RotateTransform/>
						<TranslateTransform X="0" Y="0"/>
					</TransformGroup>
				</TextBlock.RenderTransform><Run FontFamily="Segoe UI" FontWeight="Bold" FontSize="4.5" Text="71 11 67 90 38 09" Foreground="#DE5151"/><LineBreak/><Run FontFamily="Segoe UI" FontWeight="Bold" FontSize="4.5" Text="43 34 54 10 82 32" Foreground="#FF2C19CC"/><LineBreak/><Run FontFamily="Segoe UI" FontWeight="Bold" FontSize="4.5" Text="12 67 04 28 76 88" Foreground="#DE5151"/><LineBreak/><Run FontFamily="Segoe UI" FontWeight="Bold" FontSize="4.5" Text="65 45 32 56 21 90" Foreground="#FF2C19CC"/><LineBreak/><Run FontFamily="Segoe UI" FontWeight="Bold" FontSize="4.5" Text="43 34 54 10 82 32" Foreground="#DE5151"/><LineBreak/><Run FontFamily="Segoe UI" FontWeight="Bold" FontSize="4.5" Text="12 67 04 28 76 88" Foreground="#FF2C19CC"/><LineBreak/><Run FontFamily="Segoe UI" FontWeight="Bold" FontSize="4.5" Text="71 11 67 90 38 09" Foreground="#DE5151"/></TextBlock>
		</Canvas>
		<Canvas x:Name="IconRefresh" Width="45.75" Canvas.Left="0" Canvas.Top="0" Grid.Row="0" Margin="0,10.07,23,10.007" HorizontalAlignment="Right" RenderTransformOrigin="0.5,0.5">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-90"/>
					<TranslateTransform/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Path x:Name="path" Width="45.71" Height="39.926" Stretch="Fill" StrokeLineJoin="Round" Data="F1 M -382.683,203.608L -380.933,203.627L -380.933,237.132L -382.433,237.108C -407.562,237.108 -427.933,257.479 -427.933,282.608C -427.933,307.737 -407.562,328.108 -382.433,328.108C -357.636,328.108 -337.472,308.272 -336.943,283.602L -361.81,283.476L -320.821,234.852L -280.326,283.888L -303.438,283.771C -303.927,327.119 -339.219,362.108 -382.683,362.108C -426.451,362.108 -461.933,326.626 -461.933,282.858C -461.933,239.089 -426.451,203.608 -382.683,203.608 Z " RenderTransformOrigin="0.5,0.5" StrokeThickness="2" >
				<Path.RenderTransform>
					<TransformGroup>
						<ScaleTransform/>
						<SkewTransform/>
						<RotateTransform Angle="-720"/>
						<TranslateTransform/>
					</TransformGroup>
				</Path.RenderTransform>
				<Path.Stroke>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFD42F1E" Offset="1"/>
						<GradientStop Color="#FFDAA05A"/>
					</LinearGradientBrush>
				</Path.Stroke>
				<Path.Fill>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#BFB5F5C5" Offset="0"/>
						<GradientStop Color="#BD5264C8" Offset="1"/>
					</LinearGradientBrush>
				</Path.Fill>
			</Path>
		</Canvas>
	
		<Rectangle x:Name="rectangle1" HorizontalAlignment="Left" Margin="20,4,0,4" Stroke="#00CCBEBE" StrokeThickness="2" StrokeLineJoin="Round" Width="52" Height="52" Grid.Row="0" MouseLeftButtonUp="rectangle1_MouseLeftButtonUp" MouseLeftButtonDown="rectangle1_MouseLeftButtonDown">
			<Rectangle.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		
		<Rectangle x:Name="rectangle2" HorizontalAlignment="Left" Margin="72,4,0,4" Stroke="#00CCBEBE" StrokeThickness="2" StrokeLineJoin="Round" Width="52" Height="52" Grid.Row="0" MouseLeftButtonDown="rectangle2_MouseLeftButtonDown" MouseLeftButtonUp="rectangle2_MouseLeftButtonUp">
			<Rectangle.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		
		<Rectangle x:Name="rectangle3" HorizontalAlignment="Left" Margin="124,4,0,4" Stroke="#00CCBEBE" StrokeThickness="2" StrokeLineJoin="Round" Width="52" Height="52" Grid.Row="0" MouseLeftButtonDown="rectangle3_MouseLeftButtonDown" MouseLeftButtonUp="rectangle3_MouseLeftButtonUp">
			<Rectangle.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		
		<Rectangle x:Name="rectangleRefresh" Margin="0,4,20,4" Stroke="#00CCBEBE" StrokeThickness="2" StrokeLineJoin="Round" Height="52" Grid.Row="0" HorizontalAlignment="Right" Width="52" MouseLeftButtonDown="rectangleRefresh_MouseLeftButtonDown" MouseLeftButtonUp="rectangleRefresh_MouseLeftButtonUp">
			<Rectangle.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF99B4D1"/>
					<GradientStop Offset="1"/>
					<GradientStop Color="#FFE71717"/>
					<GradientStop/>
				</RadialGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<TabControl Grid.Row="1" Style="{StaticResource TabControlStyle1}" Name="ContentTabControl" SelectedIndex="0" BorderThickness="0">
            <TabItem x:Name="ITreesTabItem" Header="TabItem">
                <Grid x:Name="MainGridI" Background="#FFE5E5E5" Margin="-4">
                    <TabControl TabStripPlacement="Bottom" Background="White">
                        <TabItem Header="Settings">
                            <Grid Background="#FFE5E5E5">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="340"/>
                                    <ColumnDefinition Width="951*"/>
                                </Grid.ColumnDefinitions>
                                
                                <Grid Margin="10,10,0,10" Grid.Column="0">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="172*"/>
                                        <RowDefinition Height="107*"/>
                                        <RowDefinition Height="60"/>
                                    </Grid.RowDefinitions>
                                    <ScrollViewer Margin="0" VerticalScrollBarVisibility="Auto">
                                        <Grid>
                                            <Label Content="Minimum number of child:" Height="20" Padding="2" HorizontalAlignment="Left" x:Name="label2I" VerticalAlignment="Top" Width="169" Foreground="Black" Margin="0,85,0,0" />
                                            <Label Content="Minimum number of parent:" Height="20" Padding="2" HorizontalAlignment="Left" Margin="0,110,0,0" x:Name="label3I" VerticalAlignment="Top" Width="188" Foreground="Black" />
                                            <Label Content="Maximum number of levels of tree:" Height="20" Padding="2" HorizontalAlignment="Left" Margin="0,135,0,0" x:Name="label4I" VerticalAlignment="Top" Width="198" Foreground="Black" />
                                            <Label Content="Minimum variance of the node:" Height="20" Padding="2" HorizontalAlignment="Left" Margin="0,160,0,0" x:Name="label5I" VerticalAlignment="Top" Width="188" Foreground="Black" />

                                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,85,0,0" x:Name="textBoxMNVI" VerticalAlignment="Top" Width="120" TabIndex="1" Text="4"/>
                                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,110,0,0" x:Name="textBoxMNVPI" VerticalAlignment="Top" Width="120" TabIndex="2" Text="8"/>
                                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,135,0,0" x:Name="textBoxMLI" VerticalAlignment="Top" Width="120" TabIndex="3" Text="12"/>
                                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,160,0,0" x:Name="textBoxMVNI" VerticalAlignment="Top" Width="120" TabIndex="4" Text="0.01"/>

                                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Load vectors" Height="30" HorizontalAlignment="Left" x:Name="OpenFile" VerticalAlignment="Top" Width="310" Click="OpenFileI_Click" TabIndex="7"/>
                                            <Label Height="20" Content="Number of attributes:" Padding="2" HorizontalAlignment="Left" Margin="0,35,0,0" x:Name="label6" VerticalAlignment="Top" Width="129" Foreground="Black" />
                                            <Label Height="20" Content="Number of vectors:" Padding="2" HorizontalAlignment="Left" Margin="0,60,0,0" x:Name="label7" VerticalAlignment="Top" Width="113" Foreground="Black" />
                                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,35,0,0" x:Name="textBoxXI" VerticalAlignment="Top" Width="120" IsReadOnly="True" IsEnabled="False" />
                                            <TextBox Height="20" Margin="190,60,0,0" x:Name="textBoxYI" VerticalAlignment="Top" IsReadOnly="True" HorizontalAlignment="Left" Width="120" IsEnabled="False" />
                                            <Label Height="20" Content="Number of random vectors:" Padding="2" HorizontalAlignment="Left" Margin="0,185,0,0" x:Name="label7_Copy" VerticalAlignment="Top" Width="180" Foreground="Black" />
                                            <TextBox Height="20" Margin="190,185,0,0" x:Name="textBoxRandVect" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" TabIndex="5" Text="300"/>
                                            <Label Height="20" Content="Number of trees (max 10):" Padding="2" HorizontalAlignment="Left" Margin="0,210,0,0" x:Name="label7_Copy1" VerticalAlignment="Top" Width="180" Foreground="Black" />
                                            <TextBox Height="20" Margin="190,210,0,0" x:Name="textBoxNumTrees" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" TabIndex="6" Text="2" TextChanged="textBoxNumTrees_TextChanged" />
                                            <GroupBox x:Name="GBMethodI" Header="Select method" HorizontalAlignment="Left" Margin="0,235,0,0" VerticalAlignment="Top" Height="Auto" Width="180">
                                                <Grid>
                                                    <Grid.RowDefinitions>
                                                        <RowDefinition Height="25" />
                                                        <RowDefinition Height="25" />
                                                        <RowDefinition Height="25" />
                                                    </Grid.RowDefinitions>
                                                    <RadioButton x:Name="RBMinVarI" Grid.Row="0" Content="Minimum Variance" Margin="0" 
                                						IsChecked="{Binding RbMinVar, Mode=TwoWay}" />
                                                    <RadioButton x:Name="RBMLPI" Grid.Row="1" Content="MLP" Margin="0"
                                						IsChecked="{Binding RbMLP, Mode=TwoWay}" />
                                                    <RadioButton x:Name="RBMinVar2aI" Grid.Row="2" Content="Minimum Variance 2A" Margin="0"
                                						IsChecked="{Binding RbMinVar2a, Mode=TwoWay}" Visibility="Hidden" />
                                                </Grid>
                                            </GroupBox>
                                            <Button Style="{StaticResource MetroButtonStyle}" x:Name="CreateTreesButton" Content="Start" HorizontalAlignment="Left" Margin="190,244,-16,0" VerticalAlignment="Top" Width="120" Height="30" Padding="0" Click="CreateTreesButton_Click" TabIndex="8" />
                                        </Grid>
                                    </ScrollViewer>
                                    <Label Height="47" Content="Generated trees" Padding="2" Margin="80,4,0,0" x:Name="label7_Copy2" VerticalAlignment="Top" Foreground="Black" FontSize="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" HorizontalAlignment="Left" Width="160" Grid.Row="1" />
                                    <ListBox x:Name="TreesDataListBox" HorizontalAlignment="Left" Margin="40,56,0,10" Width="270" BorderThickness="0" Background="{x:Null}" Grid.Row="1"/>
                                    <GroupBox Header="Classify new vectors" Height="60" HorizontalAlignment="Left" Margin="0,0" VerticalAlignment="Top" Width="320" Padding="-5" Grid.Row="2">                                        
                                        <Grid>                                            
                                            <CheckBox x:Name="CCICheckBox" Content="Take clusters value" HorizontalAlignment="Left" Margin="10,18,0,0" VerticalAlignment="Top" Visibility="Hidden"/>
                                            <Button x:Name="ClassifyIButton" Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Classify" Height="30" HorizontalAlignment="Left" Margin="165,10,0,0" VerticalAlignment="Top" Width="143" Click="ClassifyVectI_Click" IsEnabled="False" />                                            
                                        </Grid>                                        
                                    </GroupBox>
                                </Grid>
                                
                                <Grid Margin="10" ScrollViewer.CanContentScroll="True" Grid.Column="1">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="25"/>
                                        <RowDefinition Height="130*" />
                                        <RowDefinition Height="130*" />
                                    </Grid.RowDefinitions>
                                    <Label Content="Selected tree:" Grid.Row="0" FontWeight="Bold" HorizontalAlignment="Left" Width="100" Padding="5,3,0,5" FontSize="14" />
                                    <Label Content="{Binding SelectedTreeData}" Margin="100,0,0,0" Grid.Row="0" Padding="0,0,5,5" FontWeight="ExtraBold" FontSize="18" Foreground="#FFBB0000" Width="40" HorizontalAlignment="Left" />
                                    <Label Content="Quality:" Grid.Row="0" FontWeight="Bold" HorizontalAlignment="Left" Width="60" Padding="5,3,0,5" FontSize="14" Margin="140,0,0,0" />
                                    <Label Content="{Binding SelectedTreeQuality}" Grid.Row="0" Padding="5,3,0,5" FontSize="13" Margin="200,0,0,0" HorizontalContentAlignment="Stretch" Foreground="#FFBB0000"/>
                                    <Label Content="Tree" Grid.Row="1" FontWeight="Bold" />
                                    <Label Content="Symulation" Grid.Row="2" FontWeight="Bold" />
                                    <DataGrid x:Name="dataGridTreeI" Margin="0,25,0,0" Grid.Row="1" IsReadOnly="True" AlternationCount="2" Background="#FFE4E4E4" HorizontalGridLinesBrush="#FF3C3A3A" VerticalGridLinesBrush="#FF3C3A3A" 
                                                ItemsSource="{Binding Path = DataViewGridTree, IsAsync=True, Mode=TwoWay}" BorderBrush="{x:Null}"
                                                AlternatingRowBackground="#FFD8E1FF" />
                                    <DataGrid x:Name="dataGridSI" Margin="0,25,0,0" Grid.Row="2" IsReadOnly="True" AlternationCount="2" Background="#FFE4E4E4" HorizontalGridLinesBrush="#FF3C3A3A" VerticalGridLinesBrush="#FF3C3A3A" 
                                                ItemsSource="{Binding Path = DataViewGridS, IsAsync=True, Mode=TwoWay}" BorderBrush="{x:Null}"
                                                AlternatingRowBackground="#FFD8E1FF" >
                                    </DataGrid>
                                </Grid>
                            </Grid>                                
                        </TabItem>
                        <TabItem Header="View" >
                            <Grid Background="#FFE5E5E5" Margin="-4">
                                <Canvas x:Name="canvasI" Background="#FFBDC7C6" RenderTransformOrigin="0.5,0.5" Margin="400,0,0,0" SizeChanged="canvasI_SizeChanged">
                                    <Canvas.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Canvas.RenderTransform>
                                    <Grid x:Name="grid2" Canvas.Left="15" Canvas.Top="5" Height="576" Width="870" >
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="12" />
                                            <ColumnDefinition Width="858*" />
                                        </Grid.ColumnDefinitions>
                                        <Slider Margin="0,3" x:Name="sliderI" Orientation="Vertical" Interval="40" Minimum="1" Grid.Column="0" 
                                                Value="{Binding Path = SliderValue, Mode=TwoWay}" >
                                            <Slider.LayoutTransform>
                                                <ScaleTransform ScaleX="0.5" />
                                            </Slider.LayoutTransform>
                                        </Slider>
                                        <ScrollViewer Margin="0" x:Name="scrollViewerI" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">                                            
                                            <Grid x:Name="gridI" Margin="0" RenderTransformOrigin="0.5,0.5">
                                                <Grid.LayoutTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform x:Name="scaleTransformI"/>
                                                    </TransformGroup>
                                                </Grid.LayoutTransform>
                                                <Viewbox x:Name="viewboxI">
                                                    <ContentPresenter Content="{Binding Path = TreeView, Mode=TwoWay, IsAsync=True}"/>
                                                </Viewbox>
                                            </Grid>
                                        </ScrollViewer>
                                        <Grid Grid.Column="1" Width="100" Height="17" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5,0,0,0">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="80" />
                                                <ColumnDefinition Width="20" />
                                            </Grid.ColumnDefinitions>
                                            <Label Grid.Column="0" Content="Selected tree" BorderBrush="#FF3C3A3A" BorderThickness="1" Padding="0" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FF2B59AC" HorizontalContentAlignment="Center" />
                                            <Label Grid.Column="1" Padding="0" BorderThickness="1" BorderBrush="#FF3C3A3A" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FFBB0000" 
                                                   Content="{Binding Path=SelectedTreeView}" HorizontalContentAlignment="Center" />
                                        </Grid>
                                        <Canvas Height="50" Name="canvasInfoI" VerticalAlignment="Top" HorizontalAlignment="Right" Width="100" Grid.Column="1" Margin="0,0,15,0">
                                            <Label Content="G Node Num" Height="17" Width="75" Canvas.Left="0" Canvas.Top="0" HorizontalAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Top" BorderBrush="#FF3C3A3A" BorderThickness="1" Padding="0" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FF2B59AC" />
                                            <Label Canvas.Left="0" Canvas.Top="16" Content="Level" Height="17" Width="75" Padding="0" VerticalAlignment="Top" BorderThickness="1" BorderBrush="#FF3C3A3A" Background="#FFE4E4E4" FontWeight="Bold" Foreground="#FF2B59AC" />
                                            <Label Canvas.Left="0" Canvas.Top="32" Content="Node" Height="17" Width="75" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" Padding="0" Background="#FFE4E4E4" FontWeight="Bold" Foreground="#FF2B59AC" />
                                            <Label Canvas.Left="75" Canvas.Top="0" Height="17" Width="25" x:Name="GNNVal" HorizontalContentAlignment="Center" Padding="0" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FF2B59AC" 
                                                   Content="{Binding Path = GlobalNodeNum, Mode=TwoWay}" />
                                            <Label Canvas.Left="75" Canvas.Top="16" Height="17" Width="25" x:Name="LVal" HorizontalContentAlignment="Center" Padding="0" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FF2B59AC" 
                                                   Content="{Binding Path = NodeLevel, Mode=TwoWay}" />
                                            <Label Canvas.Left="75" Canvas.Top="32" Height="17" Width="25" x:Name="NVal" HorizontalContentAlignment="Center" Padding="0" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" FontWeight="Bold" Foreground="#FF2B59AC" Background="#FFE4E4E4" 
                                                   Content="{Binding Path = NodeNum, Mode=TwoWay}" />
                                        </Canvas>
                                    </Grid>
                                    <Grid x:Name="RegFormulaGridI" Canvas.Bottom="0" Width="890" Height="40" Background="#FFE4E4E4" Visibility="{Binding Path = ShowClusters, Mode=OneWay, Converter={StaticResource BoolToVisible}}" IsVisibleChanged="RegFormulaGridI_IsVisibleChanged" >
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="60" />
                                            <ColumnDefinition />
                                        </Grid.ColumnDefinitions>
                                        <Label Grid.Column="0" Padding="3">
                                            <AccessText TextWrapping="WrapWithOverflow" FontSize="12" Text="Regresion Forlula"/>
                                        </Label>
                                        <TextBox x:Name="textBoxRegFormulaI" Grid.Column="1" MaxLines="1" Margin="0" HorizontalScrollBarVisibility="Visible" Background="#FFE4E4E4" Height="40" VerticalAlignment="Top" BorderThickness="0" Text="{Binding Path = RegresionFormula, Mode=OneWay}" ScrollViewer.CanContentScroll="True" IsReadOnly="True" />
                                    </Grid>
                                </Canvas>
                                <Canvas x:Name="canvasMI" HorizontalAlignment="Left" Width="400" Background="White" RenderTransformOrigin="0.5,0.5" SizeChanged="canvasMI_SizeChanged">
                                    <Canvas.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>                                        
                                    </Canvas.RenderTransform>
                                    <Grid x:Name="gridMI" Height="576" Canvas.Left="5" Canvas.Top="5" Width="390" Background="#FFE4E4E4">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="200"/>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <Label Grid.Row="0" Height="39" HorizontalAlignment="Left" Margin="10,10,0,0"  VerticalAlignment="Top" Width="100">
                                            <AccessText TextWrapping="WrapWithOverflow" FontSize="12" Text="Number of displayed levels :"/>                                            
                                        </Label>
                                        <ComboBox Grid.Row="0" Height="22" HorizontalAlignment="Left" Margin="111,27,0,0" x:Name="ITreeLev" VerticalAlignment="Top" Width="30" FontWeight="Normal" Padding="5,3,0,0"
                                                SelectedValue="{Binding Path = TreeViewLevel, Mode=TwoWay}"
                                                SelectedValuePath="Tag">
                                            <ComboBoxItem Content="2" FontWeight="Normal" Tag="2" />
                                            <ComboBoxItem Content="3" FontWeight="Normal" Tag="3" />
                                            <ComboBoxItem Content="4" FontWeight="Normal" Tag="4" />
                                            <ComboBoxItem Content="5" FontWeight="Normal" Tag="5" />
                                            <ComboBoxItem Content="6" FontWeight="Normal" Tag="6" />
                                            <ComboBoxItem Content="7" FontWeight="Normal" Tag="7" />
                                        </ComboBox>
                                        <Label Grid.Row="0" Height="39" Content="Generated trees" Margin="183,10,0,0" VerticalAlignment="Top" Foreground="Black" FontSize="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" HorizontalAlignment="Left" Width="160" />
                                        <ListBox Grid.Row="0" x:Name="TreesViewsListBox" HorizontalAlignment="Left" Margin="165,54,0,10" Width="215" BorderThickness="0" Background="{x:Null}"/>
                                        <GroupBox Grid.Row="0" Header="Options for tree" Height="107" HorizontalAlignment="Left" Margin="10,54,0,0" Name="groupBoxForTree" VerticalAlignment="Top" Width="131" Padding="-5" >
                                            <Grid>
                                                <RadioButton Content="Logical rule" Height="16" HorizontalAlignment="Left" Margin="10,8,0,0" Name="LogicalRule" VerticalAlignment="Top" 
                                                    IsChecked="{Binding Path = ShowLogicRules, Mode=TwoWay}" />
                                                <RadioButton Content="Vectors" Height="16" HorizontalAlignment="Left" Margin="10,30,0,0" Name="Vectors" VerticalAlignment="Top" 
                                                    IsChecked="{Binding Path = ShowNodeVectors, Mode=TwoWay}" />
                                                <RadioButton Content="None" Height="16" HorizontalAlignment="Left" Margin="10,52,0,0" Name="radioButton1" VerticalAlignment="Top" IsChecked="True" />
                                                <CheckBox x:Name="IShowClustCheckBox" Content="Show clusters" HorizontalAlignment="Left" Margin="10,73,0,0" VerticalAlignment="Top" 
                                                    IsChecked="{Binding Path = ShowClusters, Mode=TwoWay}" />
                                            </Grid>
                                        </GroupBox>
                                        <DataGrid Grid.Row="1" AutoGenerateColumns="True" Margin="10,3,10,10" x:Name="dataGridVectShowI" IsReadOnly="True" AlternationCount="2" Background="#FFE4E4E4" HorizontalGridLinesBrush="#FF3C3A3A" VerticalGridLinesBrush="#FF3C3A3A" 
                                                  ItemsSource="{Binding Path = DataView, IsAsync=True, Mode=TwoWay}" BorderBrush="{x:Null}"
                                                  AlternatingRowBackground="#FFD8E1FF" />
                                    </Grid>
                                </Canvas>
                                <Path x:Name="ShowHideButtonI" Data="M0.5,0.5 L7.0000004,0.5 8.0000004,0.5 C11.589851,0.5 14.5,3.6340067 14.5,7.5000005 L14.5,52.5 C14.5,56.365993 11.589851,59.5 8.0000004,59.5 L7.0000004,59.5 0.5,59.5 0.5,52.5 0.5,7.5000005 z" Fill="#FF93A1CE" HorizontalAlignment="Left" Margin="400,255.5,0,0" Stretch="Fill" Stroke="Black" Width="12" Height="75" VerticalAlignment="Top" StrokeThickness="0" RenderTransformOrigin="0.5,0.5" MouseLeftButtonUp="ShowHideButtonI_MouseLeftButtonUp" MouseLeftButtonDown="ShowHideButtonI_MouseLeftButtonDown">
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
                                <Path x:Name="ShowHideArrowI" Stretch="Fill" Fill="#FF3C3A3A" Data="F1 M 133.376,200.674L 124.376,195.478L 124.376,205.87L 133.376,200.674 Z " Width="9" HorizontalAlignment="Left" Margin="401.5,288,0,0" Height="10" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" MouseLeftButtonUp="ShowHideButtonI_MouseLeftButtonUp" MouseLeftButtonDown="ShowHideButtonI_MouseLeftButtonDown">
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform/>
                                            <SkewTransform/>
                                            <RotateTransform Angle="180"/>
                                            <TranslateTransform/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                        </TabItem>
                    </TabControl>
                </Grid>
            </TabItem>
            <TabItem Header="TabItem" x:Name="STreeTabItem">
                <Grid x:Name="MainGridS" Background="#FFE5E5E5" Margin="-4">
                    <Canvas x:Name="canvasS" Background="#FFBDC7C6" RenderTransformOrigin="0.5,0.5" Margin="400,0,0,0" SizeChanged="canvasS_SizeChanged">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Grid x:Name="grid1" Canvas.Left="15" Canvas.Top="5" Height="600" Width="872" >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="12" />
                                <ColumnDefinition Width="860*" />
                            </Grid.ColumnDefinitions>
                            <Slider Margin="0,3" x:Name="sliderS" Orientation="Vertical" Interval="40" Minimum="1" Grid.Column="0" 
                                    Value="{Binding Path = SliderValue, Mode=TwoWay}" >
                                <Slider.LayoutTransform>
                                    <ScaleTransform ScaleX="0.5" />
                                </Slider.LayoutTransform>
                            </Slider>
                            <ScrollViewer Margin="0" x:Name="scrollViewerS" Grid.Column="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                                <Grid x:Name="gridS" Margin="0" RenderTransformOrigin="0.5,0.5">
                                    <Grid.LayoutTransform>
                                        <TransformGroup>
                                            <ScaleTransform x:Name="scaleTransformS"/>
                                        </TransformGroup>
                                    </Grid.LayoutTransform>
                                    <Viewbox x:Name="viewboxS" >
                                        <ContentPresenter Content="{Binding Path = TreeView, Mode=TwoWay, IsAsync=True}"/>
                                    </Viewbox>
                                </Grid>
                            </ScrollViewer>
                            <Canvas Height="50" Name="canvasInfoS" VerticalAlignment="Top" HorizontalAlignment="Right" Width="100" Grid.Column="1" Margin="0,0,15,0" >
                                <Label Content="G Node Num" Height="17" Width="75" Canvas.Left="0" Canvas.Top="0" HorizontalAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Top" BorderBrush="#FF3C3A3A" BorderThickness="1" Padding="1" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FF2B59AC" />
                                <Label Canvas.Left="0" Canvas.Top="16" Content="Level" Height="17" Width="75" Padding="1" VerticalAlignment="Top" BorderThickness="1" BorderBrush="#FF3C3A3A" Background="#FFE4E4E4" FontWeight="Bold" Foreground="#FF2B59AC" />
                                <Label Canvas.Left="0" Canvas.Top="32" Content="Node" Height="17" Width="75" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" Padding="1" Background="#FFE4E4E4" FontWeight="Bold" Foreground="#FF2B59AC" />
                                <Label Canvas.Left="75" Canvas.Top="0" Height="17" Width="25" x:Name="GNNValS" HorizontalContentAlignment="Center" Padding="1" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FF2B59AC" 
                                       Content="{Binding Path = GlobalNodeNum, Mode=TwoWay}" />
                                <Label Canvas.Left="75" Canvas.Top="16" Height="17" Width="25" x:Name="LValS" HorizontalContentAlignment="Center" Padding="1" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" FontWeight="Bold" Background="#FFE4E4E4" Foreground="#FF2B59AC" 
                                       Content="{Binding Path = NodeLevel, Mode=TwoWay}" />
                                <Label Canvas.Left="75" Canvas.Top="32" Height="17" Width="25" x:Name="NValS" HorizontalContentAlignment="Center" Padding="1" BorderThickness="1" BorderBrush="#FF3C3A3A" VerticalAlignment="Top" FontWeight="Bold" Foreground="#FF2B59AC" Background="#FFE4E4E4" 
                                       Content="{Binding Path = NodeNum, Mode=TwoWay}" />
                            </Canvas>
                        </Grid>
                        <Grid x:Name="RegFormulaGridS" Canvas.Bottom="0" Width="892" Height="40" Background="#FFE4E4E4" Visibility="{Binding Path = ShowClusters, Mode=OneWay, Converter={StaticResource BoolToVisible}}" IsVisibleChanged="RegFormulaGridS_IsVisibleChanged" >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="60" />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <Label Grid.Column="0" Padding="3">
                                <AccessText TextWrapping="WrapWithOverflow" FontSize="12" Text="Regresion Forlula"/>
                            </Label>
                            <TextBox x:Name="textBoxRegFormulaS"  Grid.Column="1" MaxLines="1" Margin="0" HorizontalScrollBarVisibility="Visible" Background="#FFE4E4E4" Height="40" VerticalAlignment="Top" BorderThickness="0" Text="{Binding Path = RegresionFormula, Mode=OneWay}" ScrollViewer.CanContentScroll="True" IsReadOnly="True" />
                        </Grid>
                    </Canvas>
                    <Canvas x:Name="canvasMS" HorizontalAlignment="Left" Width="400" Background="#FFFFFBFB" RenderTransformOrigin="0.5,0.5" SizeChanged="canvasMS_SizeChanged">
                        <Canvas.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Canvas.RenderTransform>
                        <Grid x:Name="gridMS" Height="600" Canvas.Left="5" Canvas.Top="5" Width="390" Background="#FFE4E4E4">
                            <Label Height="39" HorizontalAlignment="Left" Margin="10,10,0,0"  VerticalAlignment="Top" Width="100">
                                <AccessText TextWrapping="WrapWithOverflow" FontSize="12" Text="Number of displayed levels :"/>
                            </Label>
                            <ComboBox x:Name="STreeLev" Height="22" HorizontalAlignment="Left" Margin="111,27,0,0" VerticalAlignment="Top" Width="30" FontWeight="Normal" Padding="5,3,0,0"
                                    SelectedValue="{Binding Path = TreeViewLevel, Mode=TwoWay}"
                                    SelectedValuePath="Tag">
                                <ComboBoxItem Content="2" FontWeight="Normal" Tag="2" />
                                <ComboBoxItem Content="3" FontWeight="Normal" Tag="3" />
                                <ComboBoxItem Content="4" FontWeight="Normal" Tag="4" />
                                <ComboBoxItem Content="5" FontWeight="Normal" Tag="5" />
                                <ComboBoxItem Content="6" FontWeight="Normal" Tag="6" />
                                <ComboBoxItem Content="7" FontWeight="Normal" Tag="7" />
                            </ComboBox>
                            <GroupBox Header="Options for tree" Height="107" HorizontalAlignment="Left" Margin="10,54,0,0" VerticalAlignment="Top" Width="131" Padding="-5" >
                                <Grid>
                                    <RadioButton Content="Logical rule" Height="16" HorizontalAlignment="Left" Margin="10,8,0,0" Name="LogicalRuleS" VerticalAlignment="Top"
                                        IsChecked="{Binding Path = ShowLogicRules, Mode=TwoWay}" />
                                    <RadioButton Content="Vectors" Height="16" HorizontalAlignment="Left" Margin="10,30,0,0" Name="VectorsS" VerticalAlignment="Top" 
                                        IsChecked="{Binding Path = ShowNodeVectors, Mode=TwoWay}" />
                                    <RadioButton Content="None" Height="16" HorizontalAlignment="Left" Margin="10,52,0,0" VerticalAlignment="Top" IsChecked="True" />
                                    <CheckBox x:Name="SShowClustCheckBox" Content="Show clusters" HorizontalAlignment="Left" Margin="10,73,0,0" VerticalAlignment="Top"
                                        IsChecked="{Binding Path = ShowClusters, Mode=TwoWay}" />
                                </Grid>
                            </GroupBox>
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Load tree" Height="30" HorizontalAlignment="Left" Margin="174,19,0,0" x:Name="LoadTreeS" VerticalAlignment="Top" Width="193" Click="LoadTreeS_Click" />
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Load vectors" Height="30" HorizontalAlignment="Left" Margin="174,54,0,0" x:Name="LoadVectS" VerticalAlignment="Top" Width="193" Click="LoadVectS_Click" />
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Load nodes sources" Height="30" HorizontalAlignment="Left" Margin="174,89,0,0" x:Name="LoadNodesSources" VerticalAlignment="Top" Width="193" Click="LoadNodesSources_Click" />
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Show tree" Height="30" HorizontalAlignment="Left" Margin="174,124,0,0" x:Name="ShowTreeS" VerticalAlignment="Top" Width="193" Click="ShowTreeS_Click" IsEnabled="{Binding Source={x:Static storage:SingleTreeViewData.Instance}, Path=ShowTree, Mode=TwoWay}"/>
                            <GroupBox Header="Classify new vectors" Height="60" HorizontalAlignment="Left" Margin="10,166,0,0" VerticalAlignment="Top" Width="357" Padding="-5" >
                                <Grid>
                                    <CheckBox x:Name="CCCheckBox" Content="Take clusters value" HorizontalAlignment="Left" Margin="10,18,0,0" VerticalAlignment="Top" Visibility="Hidden"/>
                                    <Button x:Name="ClassifyButton" Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Classify" Height="30" HorizontalAlignment="Left" Margin="165,10,0,0" VerticalAlignment="Top" Width="180" Click="ClassifyVectS_Click" IsEnabled="False"/>
                                </Grid>                                
                            </GroupBox>
                            <DataGrid AutoGenerateColumns="True" Margin="10,234,10,10" x:Name="dataGridVectShowS" IsReadOnly="True" AlternationCount="2" Background="#FFE4E4E4" HorizontalGridLinesBrush="#FF3C3A3A" VerticalGridLinesBrush="#FF3C3A3A" 
                                                  ItemsSource="{Binding Path = DataView, IsAsync=True, Mode=TwoWay}" BorderBrush="{x:Null}"
                                                  AlternatingRowBackground="#FFD8E1FF" />                                                                               
                        </Grid>
                    </Canvas>
                    <Path x:Name="ShowHideButtonS" Data="M0.5,0.5 L7.0000004,0.5 8.0000004,0.5 C11.589851,0.5 14.5,3.6340067 14.5,7.5000005 L14.5,52.5 C14.5,56.365993 11.589851,59.5 8.0000004,59.5 L7.0000004,59.5 0.5,59.5 0.5,52.5 0.5,7.5000005 z" Fill="#FF93A1CE" HorizontalAlignment="Left" Margin="400,267.5,0,0" Stretch="Fill" Stroke="Black" Width="12" Height="75" VerticalAlignment="Top" StrokeThickness="0" RenderTransformOrigin="0.5,0.5" MouseLeftButtonUp="ShowHideButtonS_MouseLeftButtonUp" MouseLeftButtonDown="ShowHideButtonS_MouseLeftButtonDown">
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                    <Path x:Name="ShowHideArrowS" Stretch="Fill" Fill="#FF3C3A3A" Data="F1 M 133.376,200.674L 124.376,195.478L 124.376,205.87L 133.376,200.674 Z " Width="9" HorizontalAlignment="Left" Margin="401.5,300,0,0" Height="10" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" MouseLeftButtonUp="ShowHideButtonS_MouseLeftButtonUp" MouseLeftButtonDown="ShowHideButtonS_MouseLeftButtonDown">
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform/>
                                <SkewTransform/>
                                <RotateTransform Angle="180"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
            </TabItem>
            <TabItem x:Name="CTreeTabItem" Header="TabItem">
                <Grid x:Name="MainGridC" Background="#FFE5E5E5" Margin="1" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="340"/>
                        <ColumnDefinition Width="951*"/>
                    </Grid.ColumnDefinitions>
                    <ScrollViewer VerticalScrollBarVisibility="Auto">
                        <Grid Margin="10,10,0,10" Grid.Column="0" >
                            <Label Content="Minimum number of child:" Height="20" Padding="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="169" Foreground="Black" />
                            <Label Content="Minimum number of parent:" Height="20" Padding="2" HorizontalAlignment="Left" Margin="0,25,0,0" VerticalAlignment="Top" Width="188" Foreground="Black" />
                            <Label Content="Maximum number of levels of tree:" Height="20" Padding="2" HorizontalAlignment="Left" Margin="0,50,0,0" VerticalAlignment="Top" Width="198" Foreground="Black" />
                            <Label Content="Minimum variance of the node:" Height="20" Padding="2" HorizontalAlignment="Left" Margin="0,75,0,0" VerticalAlignment="Top" Width="188" Foreground="Black" />

                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,0,0,0" x:Name="textBoxMNVC" VerticalAlignment="Top" Width="120" TabIndex="1" Text="4"/>
                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,25,0,0" x:Name="textBoxMNVPC" VerticalAlignment="Top" Width="120" TabIndex="2" Text="8"/>
                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,50,0,0" x:Name="textBoxMLC" VerticalAlignment="Top" Width="120" TabIndex="3"  Text="12"/>
                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,75,0,0" x:Name="textBoxMVNC" VerticalAlignment="Top" Width="120" TabIndex="4" Text="0.01"/>
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Load vectors" Height="30" HorizontalAlignment="Left" x:Name="LoadVectC" VerticalAlignment="Top" Width="310" Click="LoadVectC_Click" Margin="0,100,0,0" />
                            <Label Height="20" Content="Number of attributes:" Padding="2" HorizontalAlignment="Left" Margin="0,135,0,0" VerticalAlignment="Top" Width="129" Foreground="Black" />
                            <Label Height="20" Content="Number of vectors:" Padding="2" HorizontalAlignment="Left" Margin="0,160,0,0" VerticalAlignment="Top" Width="113" Foreground="Black" />
                            <TextBox Height="20" HorizontalAlignment="Left" Margin="190,135,0,0" x:Name="textBoxXC" VerticalAlignment="Top" Width="120" IsReadOnly="True" IsEnabled="False" />
                            <TextBox Height="20" Margin="190,160,0,0" x:Name="textBoxYC" VerticalAlignment="Top" IsReadOnly="True" HorizontalAlignment="Left" Width="120" IsEnabled="False" />
                            <GroupBox x:Name="GBMethodC" Header="Select method" HorizontalAlignment="Left" Margin="0,185,0,0" VerticalAlignment="Top" Height="87" Width="150" BorderBrush="#FF222222">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="25" />
                                        <RowDefinition Height="25" />
                                        <RowDefinition Height="25" />
                                    </Grid.RowDefinitions>
                                    <RadioButton x:Name="RBMinVarC" Grid.Row="0" Content="Minimum Variance" Margin="0" 
                                                                IsChecked="{Binding Path = RbMinVar, Mode=TwoWay}" />
                                    <RadioButton x:Name="RBMLPC" Grid.Row="1" Content="MLP" Margin="0"
                                                                IsChecked="{Binding Path = RbMLP, Mode=TwoWay}" />
                                    <RadioButton x:Name="RBMinVar2aC" Grid.Row="2" Content="Minimum Variance 2A" Margin="0"
                                                                IsChecked="{Binding Path = RbMinVar2a, Mode=TwoWay}" Visibility="Hidden" />
                                </Grid>
                            </GroupBox>
                            <Button Style="{StaticResource MetroButtonStyle}" x:Name="CreateTreeButton" Content="Start" HorizontalAlignment="Left" Margin="160,194,0,0" VerticalAlignment="Top" Width="150" Height="30" Padding="0" TabIndex="8" IsEnabled="False" Click="CreateTreeButton_Click"/>
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Load set" Height="30" HorizontalAlignment="Left" Margin="160,277,0,0" x:Name="LoadSetC" VerticalAlignment="Top" Width="150" Click="LoadSetC_Click" />
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Load tree" Height="30" HorizontalAlignment="Left" Margin="0,277,0,0" x:Name="LoadTreeC" VerticalAlignment="Top" Width="150" Click="LoadTreeC_Click" />                            
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Symulation" Height="30" HorizontalAlignment="Left" Margin="0,312,0,0" x:Name="SymulationC" VerticalAlignment="Top" Width="310" Click="SymulationC_Click" />
                            <Button Style="{StaticResource MetroButtonStyle}" Padding="0" Content="Quality" Height="30" HorizontalAlignment="Left" Margin="0,347,0,0" x:Name="QualityC" VerticalAlignment="Top" Width="206" Click="QualityC_Click" />
                            <TextBox Height="20" Margin="211,352,0,0" x:Name="textBoxQualityC" VerticalAlignment="Top" IsReadOnly="True" HorizontalAlignment="Left" Width="99" IsEnabled="False" />                            
                        </Grid>
                    </ScrollViewer>
                    <Grid Margin="10" ScrollViewer.CanContentScroll="True" Grid.Column="1">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="130*" />
                            <RowDefinition Height="130*" />
                        </Grid.RowDefinitions>
                        <Label Content="Tree" Grid.Row="0" FontWeight="Bold" />
                        <Label Content="Symulation" Grid.Row="1" FontWeight="Bold" />
                        <DataGrid x:Name="dataGridTreeC" Margin="0,25,0,0" Grid.Row="0" IsReadOnly="True" AlternationCount="2" Background="#FFE4E4E4" HorizontalGridLinesBrush="#FF3C3A3A" VerticalGridLinesBrush="#FF3C3A3A" 
                                                ItemsSource="{Binding Path = DataViewGridTree, IsAsync=True, Mode=TwoWay}" BorderBrush="{x:Null}"
                                                AlternatingRowBackground="#FFD8E1FF" />
                        <DataGrid x:Name="dataGridSC" Margin="0,25,0,0" Grid.Row="1" IsReadOnly="True" AlternationCount="2" Background="#FFE4E4E4" HorizontalGridLinesBrush="#FF3C3A3A" VerticalGridLinesBrush="#FF3C3A3A" 
                                                ItemsSource="{Binding Path = DataViewGridS, IsAsync=True, Mode=TwoWay}" BorderBrush="{x:Null}"
                                                AlternatingRowBackground="#FFD8E1FF" >
                        </DataGrid>
                    </Grid>
                </Grid>
            </TabItem>
        </TabControl>	
        <StackPanel Grid.Row="2" Orientation="Horizontal">
            <Label  Content="Rows Loaded =" Padding="5,0" HorizontalAlignment="Left" Width="90" />
            <Label  Content="{Binding Source={x:Static storage:BottomBarInfo.Instance}, Path=DataViewRowsCount}" Padding="0" HorizontalAlignment="Left"  />
            <Label  Content="Execution Time :" Padding="15,0,5,0" HorizontalAlignment="Left" Width="107" />
            <Label  Content="{Binding Source={x:Static storage:BottomBarInfo.Instance}, Path=ExecutionTimeInfo}" Padding="0" HorizontalAlignment="Left"  />
        </StackPanel>
    </Grid>
</Window>